import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'animate.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { mycontextmenu } from '@/directive'

const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  if (key === 'Menu') {
    app.component('MenuImg', component)
    continue
  }
  app.component(key, component)
}

app.directive(mycontextmenu.name, mycontextmenu)

app.use(store).use(router).mount('#app')
